package com.deng.springboot.demo.web.service.imp;

import com.deng.springboot.demo.facade.entity.User;
import com.deng.springboot.demo.web.mapper.UserMapper;
import com.deng.springboot.demo.web.service.IUserService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author 邓力宾
 * @date 2020/3/1023:03
 * @Description:
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<User, UserMapper>implements IUserService {


    /**
     * 添加一个用户 测试异步执行
     * @param user
     * @return
     */
    @Override
    @Async //异步执行
    public void addUser(User user) {
       this.mapper.insert(user);
    }
}
